<?php
/**
 * generic models manager
 *
 * This file is part of Webappkit, a packages system for PHP web apps
 * @link http://webappkit.net
 * @package
 * @subpackage
 * @author J.Ducastel <nospam0@ducastel.name>
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 */



class DjManager {

    /**
     * @var string $model model class
     */
    public function __construct($model) {
        $this->model=$model;
    }/**/

    /**
     * get a record by parameters
     * @param array $params
     * @return DjModel
     */
    public function get($params) {
        print_r($params);
        $class=$this->model;
        return new $class($params);
    }

    /**
     * @var string model class
     */
    protected $model;
}